package com.chouren.goandroid.http.response;

import java.io.File;

import com.chouren.goandroid.http.comm.KeyValuePair;
import com.chouren.goandroid.http.exception.HttpException;
import com.chouren.goandroid.http.parser.DataParser;
import com.chouren.goandroid.http.request.Request;

import android.graphics.Bitmap;

public interface Response {
	public String getString();

	public byte[] getBytes();

	public <T> T getObject(Class<T> claxx);

	public <T> T getObjectWithMockData(Class<T> claxx, String json);

	public File getFile();

	public Bitmap getBitmap();

	public KeyValuePair[] getHeaders();

	public long getContentLength();

	public String getCharSet();

	public Request getRequest();

	public HttpException getException();

	public HttpStatus getHttpStatus();

	public boolean isSuccess();

	public int getTryTimes();

	public int getRedirectTimes();

	public long getConnectTime();

	public int getReadedLength();

	public DataParser<?> getDataParser();
}
